package com.mali.malibackendmodel.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author:吴键霏
 * @Date：2024/6/18 15:35
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OperationLogDTO {
    /**
     * 操作人id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 操作的商品id
     */
    @TableField(value = "productId")
    private Long productId;

    /**
     * 操作动作
     */
    private String operator;

    /**
     * 操作备注信息
     */
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
